View Issue Details

IDProjectCategoryView StatusLast Update
0001844T99X171.00 SKB EagleSW Issuepublic2025-04-07 10:06
Reporter(ALTech) Younkwang Jung Assigned To(ALTech) Younkwang Jung Due Date2023-12-06 11:31
PriorityurgentSeveritys4-minorReproducibilityhave not tried
Status closedResolutionnot a bug 
Summary0001844: [Smart3][OS10][VCS] Please review the key event log.
DescriptionHi Jason

Analysis of ANR(com.skb.tv) observed during BMT test is required

JIRA is
https://jira.skbroadband.com/browse/BPM-24689

The current status is
Keyevent log analysis is required
If it is normal, the key event down / up pair is correct and there is no problem
================================================================================================
..
2023-12-05 05:11:31.322000 3821 3821 3917 I WindowManager interceptKeyTi keyCode=130 down=true repeatCount=0 keyguardOn=false canceled=false policyFlags=1795162112 mDeviceId=-1 mSource=0 mScanCode=0 mCharacters=null
2023-12-05 05:11:31.324000 3821 3821 3917 D WindowManager interceptKeyTi strDate 2023-12-05 05:11
2023-12-05 05:11:31.359000 3821 3821 3917 I WindowManager interceptKeyTi keyCode=130 down=false repeatCount=0 keyguardOn=false canceled=false policyFlags=1795162112 mDeviceId=-1 mSource=0 mScanCode=0 mCharacters=null
2023-12-05 05:11:31.359000 3821 3821 3917 D WindowManager interceptSkbFuctionKeyBeforeDispatching keycode = 130
..
================================================================================================

When checking the key event at the time of the problem,
keycode 20 is sent down and keycode 22 occurs before the up occurs
An ANR has occurred in InputDispatcher.
================================================================================================
..
2023-12-05 05:11:35.980000 3821 3821 3917 I WindowManager interceptKeyTi keyCode=20 down=true repeatCount=0 keyguardOn=false canceled=false policyFlags=1795162112 mDeviceId=-1 mSource=0 mScanCode=0 mCharacters=null
2023-12-05 05:11:35.980000 3821 3821 3917 D WindowManager interceptKeyTi strDate 2023-12-05 05:11

2023-12-05 05:11:36.111000 3821 3821 3917 I WindowManager interceptKeyTi keyCode=22 down=true repeatCount=0 keyguardOn=false canceled=false policyFlags=1795162112 mDeviceId=-1 mSource=0 mScanCode=0 mCharacters=null
2023-12-05 05:11:36.111000 3821 3821 3917 D WindowManager interceptKeyTi strDate 2023-12-05 05:11
2023-12-05 05:11:41.119000 3821 3821 3917 I InputDispatcher ===> traceKey A7, keycode=22, interceptKeyResult=2, in dispatchKeyLocked of frameworks/native/services/inputflinger/InputDispatcher.cpp line 850
..

=================================================================================================
ANR file
----- pid 4744 at 2023-12-05 05:11:42 -----
Cmd line: com.skb.tv
Build fingerprint: 'SKB/BFX_AT100/BFX-AT100:10/QTT5.200429.010/15.541.30-20231130:userdebug/release-keys'
..

"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x710c61f0 self=0xf685ce00
  | sysTid=4744 nice=-10 cgrp=default sched=0/0 handle=0xf6d75dc0

=================================================================================================
BFX-AT100 adds a log about InputDispatcher (attached picture)
Please analyze the log (is there anything that could be a problem ? )

Thank you
YK.Jung
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (ALTech) JunGyu Kim , (ALTech) SY Yoon , (SW) Jacky Chiang , (SW) Jason Ling

Activities

(ALTech) Younkwang Jung

2023-12-06 10:35

developer  

BFX-AT100_3eb3_2_logcat.zip (15,044,444 bytes)
image.png (322,940 bytes)

(ALTech) Younkwang Jung

2023-12-06 11:50

developer   ~0014675

Hi Sam

Here is the update of the log file I checked

Thank you
YK.Jung
BFX-AT100_3eb3_2_logcat-2.zip (20,075,581 bytes)
image-2.png (87,241 bytes)   
image-2.png (87,241 bytes)   

(ALTech) Younkwang Jung

2023-12-07 11:34

developer   ~0014678

Hi Sam

Please update the progress

Thank you
YK.Jung

(ALTech) Younkwang Jung

2023-12-08 11:04

developer   ~0014685

Hi Sam

Please update the progress

Thank you
YK.Jung

(SW) Jason Ling

2023-12-08 12:00

developer   ~0014686

Last edited: 2023-12-08 12:18

Hi JunGyu,

We suspect that the App didn't handle the keyevent on time (within 5 secs), So the key down/up events look unpaired

We don't have 3rd party source code,we cannot analyze further. According to theory of InputDispatcher ANR, It occurs when App doesn't handle the keyevent within 5 seconds.
we guess that App are waiting event/callback in main thread. so the down key is not being used correctly on the HomeUI

I also checked the git log of InputDispatcher.cpp for atv10 on Google git. Our code is up to date.

Thanks,
Jason

(SW) Kerwin Chen

2025-04-07 10:06

developer   ~0017430

no activity for this issue

Issue History

Date Modified Username Field Change
2023-12-06 10:35 (ALTech) Younkwang Jung New Issue
2023-12-06 10:35 (ALTech) Younkwang Jung Status new => assigned
2023-12-06 10:35 (ALTech) Younkwang Jung Assigned To => (SW) Jason Ling
2023-12-06 10:35 (ALTech) Younkwang Jung File Added: BFX-AT100_3eb3_2_ANR-2023_12_05-09_35_45_489545.zip
2023-12-06 10:35 (ALTech) Younkwang Jung File Added: BFX-AT100_3eb3_2_logcat (2).zip
2023-12-06 10:35 (ALTech) Younkwang Jung File Added: BFX-AT100_3eb3_2_logcat.zip
2023-12-06 10:35 (ALTech) Younkwang Jung File Added: image.png
2023-12-06 10:36 (ALTech) Younkwang Jung Issue Monitored: (ALTech) SY Yoon
2023-12-06 10:36 (ALTech) Younkwang Jung Issue Monitored: (ALTech) JunGyu Kim
2023-12-06 10:57 (SW) Jason Ling Issue Monitored: (SW) Jason Ling
2023-12-06 10:57 (SW) Jason Ling Assigned To (SW) Jason Ling => (SW) Sam Yang
2023-12-06 10:57 (SW) Jason Ling Issue Monitored: (SW) Jacky Chiang
2023-12-06 11:50 (ALTech) Younkwang Jung Note Added: 0014675
2023-12-06 11:50 (ALTech) Younkwang Jung File Added: BFX-AT100_3eb3_2_logcat-2.zip
2023-12-06 11:50 (ALTech) Younkwang Jung File Added: image-2.png
2023-12-07 11:34 (ALTech) Younkwang Jung Note Added: 0014678
2023-12-08 11:04 (ALTech) Younkwang Jung Note Added: 0014685
2023-12-08 12:00 (SW) Jason Ling Note Added: 0014686
2023-12-08 12:00 (SW) Jason Ling Assigned To (SW) Sam Yang => (ALTech) Younkwang Jung
2023-12-08 12:18 (SW) Jason Ling Note Edited: 0014686
2025-04-07 10:06 (SW) Kerwin Chen Status assigned => closed
2025-04-07 10:06 (SW) Kerwin Chen Resolution open => not a bug
2025-04-07 10:06 (SW) Kerwin Chen Note Added: 0017430